home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / SPAWNO41.ARJ / SPAWNVPO.C < prev    next >
C/C++ Source or Header  |  1991-11-10  |  829b  |  26 lines

  1. /********************************************************************/
  2. /*   SPAWNO v4.0   EMS/XMS/disk swapping replacement for spawn...() */
  3. /*   (c) Copyright 1990, 1991 Ralf Brown  All Rights Reserved        */
  4. /*                                    */
  5. /*   May be freely copied provided that this copyright notice is    */
  6. /*   not altered or removed.                        */
  7. /********************************************************************/
  8.  
  9. #include "_spawno.h"
  10.  
  11. int _Cdecl spawnvpo(const char *overlay_path, const char *prog_name,
  12.             const char **args)
  13. {
  14.    char *prog_path = __spawn_search(prog_name) ;
  15.  
  16.    if (prog_path)
  17.       return __spawnv(overlay_path,prog_path,args,0) ;
  18.    else
  19.       {
  20.       errno = ENOENT ;    /* path or filename not found */
  21.             /* _doserrno already set by __spawn_search() */
  22.       return -1 ;
  23.       }
  24. }
  25.  
  26.